Pod::Spec.new do |s|
  s.name         = 'GooglePlus'
  s.version      = '1.7.1'
  s.summary      = 'Google+ Platform for iOS.'
  s.description  = 'Create a more engaging experience and connect with more users by integrating social into your app. Extend your app in new and creative ways using these Google+ platform features.'
  s.homepage     = 'https://developers.google.com/+/mobile/ios/'
  s.license      = { :type => 'BSD',
                     :text => 'Copyright 2014 Google Inc.'}
  s.authors      = [ 'Google Inc.' ]
  s.source       = { :http => 'https://developers.google.com/+/mobile/ios/sdk/google-plus-ios-sdk-1.7.1.zip'}
  s.source_files = 'google-plus-ios-sdk-1.7.1/GoogleOpenSource.framework/Versions/A/Headers/*.h'
  s.resources    = ['google-plus-ios-sdk-1.7.1/GooglePlus.bundle']
  s.requires_arc = false

  s.subspec 'GPPSignIn' do |signin|
    signin.resources    = [ 'google-plus-ios-sdk-1.7.1/GooglePlus.bundle']
    signin.source_files = [ 'google-plus-ios-sdk-1.7.1/GooglePlus.framework/Versions/A/Headers/GPPSignIn*.h']
#    signin.vendored_frameworks = [ "google-plus-ios-sdk-1.7.1/GooglePlus.framework" ]
#    signin.frameworks   = [ 'GooglePlus' ]
    signin.dependency 'GooglePlus/GPPOpenSource'
  end

  s.subspec 'GPPSharebox' do |sharebox|
    sharebox.resources    = [ 'google-plus-ios-sdk-1.7.1/GooglePlus.bundle' ]
    sharebox.source_files = [ 'google-plus-ios-sdk-1.7.1/GooglePlus.framework/Versions/A/Headers/GPPDeeplink.h',
                              'google-plus-ios-sdk-1.7.1/GooglePlus.framework/Versions/A/Headers/GPPShare.h',
                              'google-plus-ios-sdk-1.7.1/GooglePlus.framework/Versions/A/Headers/GPPURLHandler.h' ]
    sharebox.dependency 'GooglePlus/GPPOpenSource'
  end

#  s.subspec 'GPPInvite' do |invite|
#    invite.resources    = [ 'google-plus-ios-sdk-1.7.1/GooglePlus.bundle' ]
#    invite.source_files = [ 'google-plus-ios-sdk-1.7.1/GooglePlus.framework/Versions/A/Headers/GPPInvite*.h', ]
#    invite.dependency 'GooglePlus/GPPOpenSource'
#  end
  
  s.subspec 'GPPOpenSource' do |opensource|
    opensource.source_files = [ 'google-plus-ios-sdk-1.7.1/GoogleOpenSource.framework/Versions/A/Headers/*.h' ]
    opensource.vendored_frameworks = [ "google-plus-ios-sdk-1.7.1/GoogleOpenSource.framework" ]
    opensource.frameworks   = [ 'AddressBook',
                                'AssetsLibrary',
                                'CoreGraphics',
                                'CoreLocation',
                                'CoreMotion',
                                'CoreText',
                                'Foundation',
                                'GoogleOpenSource',
                                'MediaPlayer',
                                'Security',
                                'SystemConfiguration',
                                'UIKit' ]
  end

#  s.subspec 'GPPACLPicker' do |aclpicker|
#    aclpicker.private_header_files   = ['google-plus-ios-sdk-1.7.1/GooglePlus.framework/Headers/GPPACLPicker/*.h']
#  end

end
